import 'package:flutter/material.dart';

class SimpleDialogSample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: new AppBar(
        title: Text("简单对话框演示"),
      ),
      body: Center(
        child: SimpleDialog(
          titlePadding: EdgeInsets.all(15),
          title: const Text("对话框标题"),
          contentPadding: EdgeInsets.all(10),
          children: <Widget>[
            SimpleDialogOption(
              onPressed: () {},
              child: const Text("第一行信息"),
            ),
            SimpleDialogOption(
              onPressed: () {},
              child: const Text("第二行信息"),
            ),
            SimpleDialogOption(
              onPressed: () {},
              child: const Text("第三行信息"),
            )
          ],
        ),
      ),
    );
  }
}
